package com.jye.rseven.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private Integer id;
    private String openId;//wx用户唯一标识
    private String nickname;//昵称
    private String avatarurl;//头像
    private int status;//状态
    private Date lastLoginTime;
    @Transient
    private List<Courses> coursesList;//我的课程
    @Transient
    private List<Classes> classesList;//我的班级
    @Transient
    private String className = "未分班";//分班情况
    @Transient
    private Credit credit;
    @Transient
    private CreditRecord creditRecord;


    public User(String open_id, String nickname, String avatarurl) {
        this.openId = open_id;
        this.nickname = nickname;
        this.avatarurl = avatarurl;
    }

}
